package com.dada.controller;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by jianweilin on 16/8/24.
 */
@Controller
@RequestMapping("/hello2/api")
public class HelloController2 {
    @ResponseBody
    @RequestMapping(value = "/put",method = RequestMethod.PUT,consumes = "application/text")
    @ApiOperation(value="推送数据",notes="将BI数据推送到服务端")
    public String push(@ApiParam(required = true,name = "username",value = "用户名")
                       @RequestParam String username){
        return "push data2 to server";
    }
}

